home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Advisor
/
CD-ROM Advisor.iso
/
prodemo
/
pdymain.dir
/
00004_Script_4
< prev
next >
Wrap
Text File
|
1995-09-29
|
3KB
|
92 lines
on enterFrame
global gMovieToPlay
global gIndexOfCurrentButton
global gMouseDownInButton --TRUE means down was in a button...in case of rollout
global gIsMainButton, gIsSmallButton --TRUE if a mouseDown in a main/small button
global gChannelForHighLights, gChannelForFreeFlash
global gFreeFlashTimerBase
global gSmallButtonsOn
-- $$$ starts
global gCursorIsHand
put FALSE into gCursorIsHand
-- $$$ ends
put the mouseH into hTemp
put the mouseV into vTemp
-- if mouse is in a button and if last mouseDown was in it, then highlight it
if gMouseDownInButton then
if gIsMainButton then
put isPositionWithinMainButton (hTemp, vTemp) into iButtonTemp
if iButtonTemp = gIndexOfCurrentButton then
set the visible of sprite gChannelForHighLights to TRUE
updateStage
else
set the visible of sprite gChannelForHighLights to FALSE
updateStage
end if
else
if gSmallButtonsOn then
put isPositionWithinSmallButton (hTemp, vTemp) into iButtonTemp
if iButtonTemp = gIndexOfCurrentButton then
set the visible of sprite gChannelForHighLights to TRUE
updateStage
else
set the visible of sprite gChannelForHighLights to FALSE
updateStage
end if
end if
end if
else
-- the mouse was not down in a button, so change cursor if it's over a button
if (isPositionWithinMainButton (hTemp, vTemp) > 0) or (isPositionWithinSmallButton (hTemp, vTemp) > 0) then
-- $$$ starts
if not gCursorIsHand then
cursor [9, 10]
put TRUE into gCursorIsHand
end if
else
cursor -1
put FALSE into gCursorIsHand
end if
end if
--if the small buttons are on, then flash (blink) the free button
if gSmallButtonsOn then
put "gSmallButtonsOn =", gSmallButtonsOn
put (the timer - gFreeFlashTimerBase) into timeDeltaTemp
--put "the timer =", the timer, " gFreeFlashTimerBase =", gFreeFlashTimerBase, " timeDeltaTemp =", timeDeltaTemp
if (timeDeltaTemp > 100) and (timeDeltaTemp <= 150)then
set the visible of sprite gChannelForFreeFlash to TRUE
else
if (timeDeltaTemp > 150) then
set the visible of sprite gChannelForFreeFlash to FALSE
put the timer into gFreeFlashTimerBase
end if
end if
end if
end enterFrame
on exitFrame
global gNextLabel
global gIsMainButton, gIsSmallButton
global gAnisForMainButtons, gIndexOfCurrentButton
global gMovieToPlay
-- $$$
global gCursorIsHand
if gMovieToPlay then
cursor 4 -- watch cursor
put FALSE into gCursorIsHand
play movie getAt(gAnisForMainButtons, gIndexOfCurrentButton)
end if
go to frame gNextLabel
end exitFrame